﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Shared.Dto.Dept
{
    public class DeptUpdateDto
    {

        [JsonProperty(PropertyName = "deptId")]
        [Required(ErrorMessage = "缺少参数")]
        public long? DeptId { get; set; } = null;

        [JsonProperty(PropertyName = "parentId")]
        public long? ParentId { get; set; } = 0L;

        [JsonProperty(PropertyName = "deptName")]
        [Required(ErrorMessage = "请填写部门名称")]
        public string DeptName { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "deptEn")]
        [Required(ErrorMessage = "请填写部门简称")]
        public string DeptEn { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "leader")]
        public string Leader { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "phone")]
        public string Phone { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "ancestors")]
        public string Ancestors { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "orderNum")]
        public int? OrderNum { get; set; } = 0;

        public long? UpdatedBy { get; set; } = null;
        public DateTime? UpdatedTime = DateTime.Now;

    }
}
